<@html>
<link rel="stylesheet" href="${path}/js/dojo/dojox/grid/resources/${theme}Grid.css">
<script type="text/javascript" src="${path}/js/dojo/dojo/inputForm.gzjs"></script>
<script type="text/javascript">
	//dojo.require("dijit.dijit");
	//dojo.require("dijit.form.TextBox");
	//dojo.require("dojox.data.QueryReadStore");
	//dojo.require("widget.navgrid.NavGrid");
</script>
<@queryForm>
<TABLE class=queryTable cellSpacing=0 width="100%" align=center border=0>
	<tr>
		<td width="9%" class="right">
		<@s.text name="userCode"/><@splitor/>
		</td>
		<td width="18%">
			<input name="ln.userId" type="text" dojoType="dijit.form.TextBox" id="userCOde" size="15"/>
		</td>
		<td width="9%" class="right">
		<@s.text name="userName"/><@splitor/>
		</td>
		<td width="18%">
			<input name="ln.userName" type="text" dojoType="dijit.form.TextBox" id="userName" size="15"/>
		</td>
	</tr>
</TABLE>
</@queryForm>
<div jsId="grid" dojoType="widget.navgrid.NavGrid" selectionMode="multiple"
     rowsPerPage="10" structure="layout" autoHeight="11">
</div>
<script type="text/javascript">
	var store = new dojox.data.QueryReadStore({
				url : '${path}/system/log.lognoteList.do',
				requestMethod : "post"
			});

	var layout = [
		{
			//type: "dojox.grid._CheckBoxSelector"
		},
		{
			cells : [
				[
					//new dojox.grid.cells.RowIndex({ width:"10%",name:"序号" }),
					{
						name : '用户名称',
						field : 'userName',
						headerClasses:"gridHeader",
						width : "10%"
					},
					{
						name : 'IP地址',
						field : 'clientIp',
						headerClasses:"gridHeader",
						width : "10%"
					},
					{
						name : '登陆时间',
						field : 'logInTime',
						headerClasses:"gridHeader",
						width : "15%"
					},
					{
						name : '退出时间',
						field : 'logOutTime',
						headerClasses:"gridHeader",
						width : "15%"
					},
					{
						name : '在线时间',
						field : 'logTime',
						headerClasses:"gridHeader",
						width : "20%"
					},
					{
						name : '状态',
						field : 'state',
						headerClasses:"gridHeader",
						width : "10%"
					}
				]
			]
		}
	];
	dojo.ready(function() {
		//事件注册
		//查询
		dojo.connect(dijit.byId("btnQuery"), "onClick", function() {
			grid.setStore(store, dojo.formToObject("queryForm"));
		})
	})
</script>
</@html>
